package com.chengfei.thread.demo1;

/**
 * 匿名内部类
 * @author chengfei5
 * @date 2019/1/3
 */
public class NewThread3 {
    public static void main(String[] args) {
//        new Thread(){
//            @Override
//            public void run(){
//                System.out.println("thread running");
//            }
//        }.start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("thread running");
            }
        }).start();
    }
}
